package jni;

public class JniDemo2
{
    static{
        //注意这里需要在idea中设置一下参数，VM op：-Djava.library.path=D:\Users\testrczs\src\main\lib\
        //名字不需要带后缀
        System.loadLibrary("Win32Project1");
    }
    public native static double add(double i, double j);

    public native static double div(double i, double j);

    public native static double mul(double i, double j);

    public native static double sub(double i, double j);

    public static void main(String[] args)
    {
        System.out.println(add(8.0, 56.0));
        System.out.println(div(8, 2));
        System.out.println(mul(85, 32));
        System.out.println(sub(26, 78));

    }
}
